package com.ipfsemc.ipfsemc.service;

import com.ipfsemc.ipfsemc.model.Order;
import com.ipfsemc.ipfsemc.model.OrderVoOne;
import com.ipfsemc.ipfsemc.model.OrderVoThree;
import com.ipfsemc.ipfsemc.model.OrderVoTwo;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;

@Transactional
public interface IOrderService {

    public int addOrder(Order order);

    public int delOrder(String orderId);

    public BigDecimal bigMony(String userId);

    @Transactional(readOnly = true)
    public List<Order> listOrder(String userId);

    @Transactional(readOnly = true)
    public List<Order> listLevel(String userId);


    public int offlinePay(String orderId);

    @Transactional(readOnly = true)
    public OrderVoOne selectDetailsOne(Order order);

    @Transactional(readOnly = true)
    public OrderVoTwo selectDetailsTwo(Order order);


    @Transactional(readOnly = true)
    public OrderVoThree selectDetailsTree(Order order);


}
